<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.net.cluster.tina.CacheThread</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.net.cluster.tina.CacheThread";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.net.cluster.tina.CacheThread.html" class="symbol">tango.net.cluster.tina.CacheThread</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>July 2004: Initial release
<p class="sec_header">Author:</p>Kris
<dl>
<dt class="decl">class <a class="symbol _class" name="CacheThread" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L29" kind="class" beg="29" end="161">CacheThread</a> : ClusterThread; <a title="Permalink to this symbol" href="#CacheThread" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L29">#</a></dt>
<dd class="ddef">
<div class="summary">Thread for handling cache requests</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="CacheThread.this" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L40" kind="ctor" beg="40" end="51">this</a><span class="params">(AbstractServer <em>server</em>, IConduit <em>conduit</em>, Cluster <em>cluster</em>, ClusterCache <em>cache</em>)</span>; <a title="Permalink to this symbol" href="#CacheThread.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">Note that the conduit stays open until the client kills it</div></dd>
<dt class="decl">void <a class="symbol _function" name="CacheThread.dispatch" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L59" kind="function" beg="59" end="102">dispatch</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#CacheThread.dispatch" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L59">#</a></dt>
<dd class="ddef">
<div class="summary">process client requests</div></dd>
<dt class="decl">void <a class="symbol _function" name="CacheThread.load" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L125" kind="function" beg="125" end="160">load</a><span class="params">(ProtocolWriter.Command <em>cmd</em>, char[] <em>channel</em>, char[] <em>element</em>)</span>; <a title="Permalink to this symbol" href="#CacheThread.load" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.tina.CacheThread.html#L125">#</a></dt>
<dd class="ddef">
<div class="summary">Manages the loading of cache entries remotely, upon 
                the host that actually contains the cache entry. 
                
                The benefit of this approach lies in the ability to 
                'gate' access to specific resources across the entire 
                network. That is; where particular cache entries are 
                prohibitively costly to construct, it is worthwhile 
                ensuring that cost is reduced to a bare minimum. These 
                remote loaders allow the cache host to block multiple 
                network clients until there's a new entry available. 
                Without this mechanism, it would become possible for 
                multiple  network clients to request the same entry 
                simultaneously, therefore increasing the overall cost. 
                The end result is similar to that of a distributed 
                transaction.</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2004 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:03:56 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>